package tgc.edu.tms.entity;

import java.math.BigDecimal;

/**
 * @className: WorkSheetCount
 * @description: 按月工作统计表，未合并单元格
 * @author: JavaJun
 * @date: 2019年1月3日
 */
public class WorkSheetCount {

    private Integer id;
    private String time;// 时间
    private String teacher; // 老师
    private String course; // 课程
    private String classes; // 班级
    private Integer jhxs;//计划学时（总学时）
    private Integer yfbxs;// 月分班学时（上一次课记一学时）
    private Integer xsrs;// 学生人数（应到人数）
    private Boolean xmh; //是否为项目化课程
    private Double zhxs;// 折合系数
    private Double fbzhxs;// 分班折合学时
    private String remarks;// 备注
    
    public Integer getId() {
        return id; 
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getTeacher() {
        return teacher;
    }
    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }
    public String getCourse() {
        return course;
    }
    public void setCourse(String course) {
        this.course = course;
    }
    public String getTbclass() {
        return classes;
    } 
    public void setTbclass(String tbclass) {
        this.classes = tbclass;
    }
    public Integer getJhxs() {
        return jhxs;
    }
    public void setJhxs(Integer jhxs) {
        this.jhxs = jhxs;
    }
    public Integer getYfbxs() {
        return yfbxs;
    }
    public void setYfbxs(Integer yfbxs) {
        this.yfbxs = yfbxs;
    }
    public Integer getXsrs() {
        return xsrs;
    }
    public void setXsrs(Integer xsrs) {
        this.xsrs = xsrs;
    }
    public Double getZhxs() {
		if (classes.contains(",") || classes.contains("，")) {
			BigDecimal bd = new BigDecimal(xsrs);
			bd = bd.setScale(-1, BigDecimal.ROUND_DOWN);
			double a = Double.valueOf(bd.intValue());
			zhxs = (a - 50) / 100 + 1;
			if (zhxs > 1.8) {
				zhxs = 1.8;
			}
			if(xmh!=null) {
				if(xmh){
					zhxs=zhxs*1.2;
				}
			}
		} else {
			zhxs = (double) 1;
			if(xmh!=null) {
				if(xmh){
					zhxs=zhxs*1.2;
				}
			}
		}
		return zhxs;
    }
    public void setZhxs(Double zhxs) {
        this.zhxs = zhxs;
    }
    public Double getFbzhxs() {
    	fbzhxs = yfbxs*zhxs;
        return fbzhxs;
    }
    public void setFbzhxs(Double fbzhxs) {
        this.fbzhxs = fbzhxs;
    }
    public String getRemarks() {
        return remarks;
    }
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }
	public Boolean getXmh() {
		return xmh;
	}
	public void setXmh(Boolean xmh) {
		this.xmh = xmh;
	}
	public WorkSheetCount(String teacher, String course, String tbclass, Integer jhxs, Boolean xmh, Integer xsrs,
			Integer yfbxs) {
		super();
		this.teacher = teacher;
		this.course = course;
		this.classes = tbclass;
		this.jhxs = jhxs;
		this.yfbxs = yfbxs;
		this.xsrs = xsrs;
		this.xmh = xmh;
	}
	public WorkSheetCount() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
